Optimal. Leaf size=46 \[ -\frac {d}{2 b n \left (a+b x^n\right )^2}+\frac {c x \, _2F_1\left (3,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 46, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {1905, 251, 267}
\begin {gather*} \frac {c x \, _2F_1\left (3,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^3}-\frac {d}{2 b n \left (a+b x^n\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 251
Rule 267
Rule 1905
Rubi steps
\begin {align*} \int \frac {c+d x^{-1+n}}{\left (a+b x^n\right )^3} \, dx &=c \int \frac {1}{\left (a+b x^n\right )^3} \, dx+d \int \frac {x^{-1+n}}{\left (a+b x^n\right )^3} \, dx\\ &=-\frac {d}{2 b n \left (a+b x^n\right )^2}+\frac {c x \, _2F_1\left (3,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )}{a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(108\) vs. \(2(46)=92\).
time = 0.11, size = 108, normalized size = 2.35 \begin {gather*} \frac {x \left (c+d x^{-1+n}\right ) \left (\frac {a^2 n (-a d+b c x)}{b \left (a+b x^n\right )^2}+\frac {a c (-1+2 n) x}{a+b x^n}+c \left (1-3 n+2 n^2\right ) x \, _2F_1\left (1,\frac {1}{n};1+\frac {1}{n};-\frac {b x^n}{a}\right )\right )}{2 a^3 n^2 \left (c x+d x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {c +d \,x^{-1+n}}{\left (a +b \,x^{n}\right )^{3}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.35, size = 47, normalized size = 1.02 \begin {gather*} {\rm integral}\left (\frac {d x^{n - 1} + c}{b^{3} x^{3 \, n} + 3 \, a b^{2} x^{2 \, n} + 3 \, a^{2} b x^{n} + a^{3}}, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.41, size = 59, normalized size = 1.28 \begin {gather*} \frac {c\,x\,{{}}_2{\mathrm {F}}_1\left (3,\frac {1}{n};\ \frac {1}{n}+1;\ -\frac {b\,x^n}{a}\right )}{a^3}-\frac {d}{2\,b\,\left (a^2\,n+b^2\,n\,x^{2\,n}+2\,a\,b\,n\,x^n\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________